package com.smzd.projforge.actions;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.smzd.framework.system.business.MeetingService;
import com.smzd.framework.system.business.UserService;
import com.smzd.workspace.actions.LoginController;

//@Controller
public class PFLoginController extends LoginController {
	@Autowired
	UserService userService;
	@Autowired
	MeetingService meetingService;

	@RequestMapping(value="/workspace/dologin", method=RequestMethod.POST)
	public String doLogin(String j_username, String j_password,
			Boolean j_remimber_me) {
		return doLoginDefault(j_username, j_password, j_remimber_me);
	}

	@Override
//	@RequestMapping("/workspace/login")
	public String toLoginPage() {
		return toLoginPageDefault();
	}

	@Override
	@RequestMapping("/workspace/dologout")
	public String doLogout() {
		return doLogoutDefault();
	}

	@Override
	public UserService getUserService() {
		return userService;
	}

	@Override
	public MeetingService getMeetingService() {
		return meetingService;
	}
}
